import requests

class IhrmLoginApi(object):
    @classmethod
    def login(cls, req_data):
        resp = requests.post(url="https://heimahr.itheima.net/api/sys/login",
                             json=req_data)
        return resp

if __name__ == '__main__':
    req_data = {"mobile":"13800000002", "password":"hm#qd@23!"}
    resp = IhrmLoginApi.login(req_data)
    print("登录结果:",resp.json())

